package com.naiterui.ehp.bs.ds.modules.order.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.naiterui.ehp.bs.ds.common.constants.DsName;
import com.naiterui.ehp.bs.ds.modules.order.entity.ReturnOrder;
import com.naiterui.ehp.bs.ds.modules.order.vo.LogisticsCompanyVO;
import com.naiterui.ehp.bs.ds.modules.order.vo.ReturnOrderDetailVO;

@DS(DsName.EHP)
public interface ReturnOrderMapper extends BaseMapper<ReturnOrder> {

    ReturnOrderDetailVO getById(@Param("id") Long id);

    Page<ReturnOrderDetailVO> getPage(@Param("page") IPage<ReturnOrderDetailVO> page,
                                      @Param("ew") QueryWrapper<ReturnOrderDetailVO> entityWrapper);

    List<LogisticsCompanyVO> getLogisticsCompanyList();

}
